import Vue from 'vue'
import Router from 'vue-router'



Vue.use(Router)
/* Layout */
import Layout from '../views/layout/Layout'


export default new Router({
  routes: [
    {
      path: '/login',
      component: () => import('@/views/login/index'),
      hidden: true
    },
    { path: '/404', component: () => import('@/views/404'), hidden: true },

    //刚进入时显示默认页面
    {
      path: '/',
      component: Layout,
      redirect: '/dashboard',
      name: 'Dashboard',
      hidden: true,
      children: [{
        path: 'dashboard',
        component: () => import('@/views/dashboard/index')
      }]
    },


//基础设置
        {
          path: '/baseSet_1',
          component: Layout,
         // redirect: '/baseSet_1/baseSet_1_1',
          name: 'baseSet_1',
          meta: { title: '商户信息', icon: 'example' },
          children: [
            {
              path: 'baseSet_1_1',
              name: 'baseSet1',
              component: () => import('@/views/total/baseSet/commerceInfo'),
              meta: { title: '商户信息', icon: 'table' }
            },
          /*  {
              path: 'baseSet_1_2',
              name: 'baseSet2',
              component: () => import('@/views/baseSet/baseSet1/baseSet2'),
              meta: { title: '名称', icon: 'tree' }
            }*/
          ]
        },
        {
          path: '/baseSet_2',
          component: Layout,
         // redirect: '/baseSet_2',
          name: 'baseSet_2',
          meta: { title: '角色管理', icon: 'example' },
          children: [
            {
              path: 'baseSet_2_1',
              name: 'baseSet2-1',
              component: () => import('@/views/total/baseSet/roleManage'),
              meta: { title: '角色管理', icon: 'table' }
            },
        /*    {
              path: 'baseSet_2_2',
              name: 'baseSet2-2',
              component: () => import('@/views/baseSet/baseSet2/baseSet2'),
              meta: { title: '收银员', icon: 'tree' }
            }*/
          ]
        },
    {
      path: '/baseSet_3',
      component: Layout,
      // redirect: '/baseSet_2',
      name: 'baseSet_3',
      meta: { title: '用户管理', icon: 'example' },
      children: [
        {
          path: 'baseSet_3_1',
          name: 'baseSet_3_1',
          component: () => import('@/views/total/baseSet/customerManage'),
          meta: { title: '用户管理', icon: 'table' }
        },
      /*  {
          path: 'baseSet_2_2',
          name: 'baseSet2-2',
          component: () => import('@/views/baseSet/baseSet2/baseSet2'),
          meta: { title: '收银员', icon: 'tree' }
        }*/
      ]
    },



//设备管理
        //游乐项目
        {
          path: '/deviceManager_1',
          component: Layout,
          redirect: '/deviceManager_1/deviceManager1_1',
          name: 'deviceManager_1',
          meta: { title: '游乐项目', icon: 'example' },
          children: [
            {
              path: 'deviceManager1-1',
              name: 'deviceManager1-1',
              component: () => import('@/views/total/deviceManager/gameItem/itemTypeManage'),
              meta: { title: '项目类型管理', icon: 'table' }
            },
            {
              path: 'deviceManager1-2',
              name: 'deviceManager1-2',
              component: () => import('@/views/total/deviceManager/gameItem/gameItemManage'),
              meta: { title: '游乐项目管理', icon: 'tree' }
            },
            {
              path: 'deviceManager1-3',
              name: 'deviceManager1-3',
              component: () => import('@/views/total/deviceManager/gameItem/itemPortManage'),
              meta: { title: '项目端口管理', icon: 'tree' }
            }

          ]
        },
          //硬件设备
          {
            path: '/deviceManager_2',
            component: Layout,
            redirect: '/deviceManager_2/deviceManager_2_1',
            name: 'deviceManager_2',
            meta: { title: '硬件设备', icon: 'example' },
            children: [
              {
                path: 'deviceManager2-1',
                name: 'deviceManager2-1',
                component: () => import('@/views/total/deviceManager/hardwareDevice/cashierTerminal'),
                meta: { title: '收银终端', icon: 'table' }
              },
              {
                path: 'deviceManager2-2',
                name: 'deviceManager2-2',
                component: () => import('@/views/total/deviceManager/hardwareDevice/coinTerminal'),
                meta: { title: '实物币终端', icon: 'tree' }
              },
              {
                path: 'deviceManager2-3',
                name: 'deviceManager2-3',
                component: () => import('@/views/total/deviceManager/hardwareDevice/portTransformSet'),
                meta: { title: '端口通讯设置', icon: 'tree' }
              }
            ]
          },
          //设备跟踪调试
          {
            path: '/deviceManager_3',
            component: Layout,
            redirect: '/deviceManager_3/deviceManager_3_1',
            name: 'deviceManager_3',
            meta: { title: '设备跟踪调试', icon: 'example' },
            children: [
              {
                path: 'deviceManager3-1',
                name: 'deviceManager3-1',
                component: () => import('@/views/total/deviceManager/deviceFollow/projectControl'),
                meta: { title: '项目监控', icon: 'table' }
              },
              {
                path: 'deviceManager3-2',
                name: 'deviceManager3-2',
                component: () => import('@/views/total/deviceManager/deviceFollow/deviceDebug'),
                meta: { title: '设备调试', icon: 'tree' }
              },
              {
                path: 'deviceManager3-3',
                name: 'deviceManager3-3',
                component: () => import('@/views/total/deviceManager/deviceFollow/machineRepairCardRecord'),
                meta: { title: '机修卡刷卡记录', icon: 'tree' }
              },
              {
                path: 'deviceManager3-4',
                name: 'deviceManager3-4',
                component: () => import('@/views/total/deviceManager/deviceFollow/machineRepairCardRecord'),
                meta: { title: '终端设备数据统计', icon: 'tree' }
              }
            ]
          },


//会员管理
    //会员资料
    {
      path: '/memberManagement_info',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'memberManagement_info',
      meta: { title: '会员资料', icon: 'example' },
      children: [
        {
          path: 'memberManagement_info_1',
          name: 'memberManagement_info_1',
          component: () => import('@/views/total/memberManagement/memberInfo/memberInfoSearch'),
          meta: { title: '会员资料查询', icon: 'table' }
        },
         {
            path: 'memberManagement_info_2',
            name: 'memberManagement_info_2',
            component: () => import('@/views/total/memberManagement/memberInfo/memberInfoChangeRecode'),
            meta: { title: '会员信息变更记录', icon: 'tree' }
          },
        {
          path: 'memberManagement_info_3',
          name: 'memberManagement_info_3',
          component: () => import('@/views/total/memberManagement/memberInfo/memberChangeCard'),
          meta: { title: '会员补卡换卡查询', icon: 'tree' }
        },
        {
          path: 'memberManagement_info_4',
          name: 'memberManagement_info_4',
          component: () => import('@/views/total/memberManagement/memberInfo/memberCanclelition'),
          meta: { title: '会员注销记录', icon: 'tree' }
        },
      ]
    },
    //会员储值
    {
      path: '/memberManagement_Storage',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'memberManagement_Storage',
      meta: { title: '会员储值', icon: 'example' },
      children: [
        {
          path: 'memberManagement_Storage_1',
          name: 'memberManagement_Storage_1',
          component: () => import('@/views/total/memberManagement/memberStorageValue/balance'),
          meta: { title: '会员储值余额查询', icon: 'table' }
        },
        {
          path: 'memberManagement_Storage_2',
          name: 'memberManagement_Storage_2',
          component: () => import('@/views/total/memberManagement/memberStorageValue/storageChange'),
          meta: { title: '储值变更查询', icon: 'tree' }
        },
        {
          path: 'memberManagement_Storage_3',
          name: 'memberManagement_Storage_3',
          component: () => import('@/views/total/memberManagement/memberStorageValue/sellCoinRecord'),
          meta: { title: '售币记录', icon: 'tree' }
        },
      ]
    },
    //会员分析报表
    {
      path: '/memberManagement_AnalysisReport',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'memberManagement_AnalysisReport',
      meta: { title: '会员分析报表', icon: 'example' },
      children: [
        {
          path: 'memberManagement_AnalysisReport_1',
          name: 'memberManagement_AnalysisReport_1',
          component: () => import('@/views/total/memberManagement/memberAnalysisReport/memberShip'),
          meta: { title: '会员入会报表', icon: 'table' }
        },
        {
          path: 'memberManagement_AnalysisReport_2',
          name: 'memberManagement_AnalysisReport_2',
          component: () => import('@/views/total/memberManagement/memberAnalysisReport/saleRank'),
          meta: { title: '会员消费排行', icon: 'tree' }
        },
        {
          path: 'memberManagement_AnalysisReport_3',
          name: 'memberManagement_AnalysisReport_3',
          component: () => import('@/views/total/memberManagement/memberAnalysisReport/channelSpendRatio'),
          meta: { title: '会员渠道消费', icon: 'tree' }
        },
        {
          path: 'memberManagement_AnalysisReport_4',
          name: 'memberManagement_AnalysisReport_4',
          component: () => import('@/views/total/memberManagement/memberAnalysisReport/sexAgeRatio'),
          meta: { title: '会员性别 年龄占比', icon: 'tree' }
        },
      ]
    },
    //基础设置   //baseset与与基础设置的关键字重合了 这里s小写区分
    {
      path: '/memberManagement_baseset',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'memberManagement_baseset',
      meta: { title: '基础设置', icon: 'example' },
      children: [
        {
          path: 'memberManagement_baseset_1',
          name: 'memberManagement_baseset_1',
          component: () => import('@/views/total/memberManagement/baseSet/memberLevelSet'),
          meta: { title: '会员入会报表', icon: 'table' }
        },
        {
          path: 'memberManagement_baseset_2',
          name: 'memberManagement_baseset_2',
          component: () => import('@/views/total/memberManagement/baseSet/levelLimit'),
          meta: { title: '会员消费排行', icon: 'tree' }
        },
        {
          path: 'memberManagement_baseset_3',
          name: 'memberManagement_baseset_3',
          component: () => import('@/views/total/memberManagement/baseSet/joinMealSet'),
          meta: { title: '会员渠道消费', icon: 'tree' }
        },

      ]
    },



//线上管理
    //线上商品管理
    {
      path: '/onlineManage_goods',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'onlineManage_goods',
      meta: { title: '线上商品管理', icon: 'example' },
      children: [
        {
          path: 'onlineManage_goods_1',
          name: 'onlineManage_goods_1',
          component: () => import('@/views/total/onlineManage/goodsManage/goodsManage'),
          meta: { title: '线上商品管理', icon: 'table' }
        },
      ]
    },

    //线上会员查询
    {
      path: '/onlineManage_member_search',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'onlineManage_member_search',
      meta: { title: '线上会员查询', icon: 'example' },
      children: [
        {
          path: 'onlineManage_member_search_1',
          name: 'onlineManage_member_search_1',
          component: () => import('@/views/total/onlineManage/memberSearch/memberSearch'),
          meta: { title: '线上会员查询', icon: 'table' }
        },
      ]
    },

    //线上订单查询
    {
      path: '/onlineManage_list_search',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'onlineManage_list_search',
      meta: { title: '线上订单查询', icon: 'example' },
      children: [
        {
          path: 'onlineManage_list_search_1',
          name: 'onlineManage_list_search_1',
          component: () => import('@/views/total/onlineManage/listSearch/listSearch'),
          meta: { title: '线上订单查询', icon: 'table' }
        },
      ]
    },

    //线上扫码游戏
    {
      path: '/onlineManage_scan_game',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'onlineManage_scan_game',
      meta: { title: '线上扫码游戏', icon: 'example' },
      children: [
        {
          path: 'onlineManage_scan_game_1',
          name: 'onlineManage_scan_game_1',
          component: () => import('@/views/total/onlineManage/scanGame/projectSet'),
          meta: { title: '方案设置', icon: 'table' }
        },
        {
          path: 'onlineManage_scan_game_2',
          name: 'onlineManage_scan_game_2',
          component: () => import('@/views/total/onlineManage/scanGame/projectUse'),
          meta: { title: '方案使用查询', icon: 'table' }
        },
      ]
    },

    //支付配置
    {
      path: '/onlineManage_pay_set',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'onlineManage_pay_set',
      meta: { title: '支付配置', icon: 'example' },
      children: [
        {
          path: 'onlineManage_pay_set_1',
          name: 'onlineManage_pay_set_1',
          component: () => import('@/views/total/onlineManage/paySet/echat'),
          meta: { title: '微信', icon: 'table' }
        },
        {
          path: 'onlineManage_pay_set_2',
          name: 'onlineManage_pay_set_2',
          component: () => import('@/views/total/onlineManage/paySet/alipay'),
          meta: { title: '支付宝', icon: 'table' }
        },
      ]
    },


//报表中心
    //门店销售报表
    {
      path: '/reportCenter-shop-sale',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'reportCenter-shop-sale',
      meta: { title: '门店销售报表', icon: 'example' },
      children: [
        {
          path: 'reportCenter-shop-sale_1',
          name: 'reportCenter-shop-sale_1',
          component: () => import('@/views/total/reportCenter/shopSale/shopSale'),
          meta: { title: '门店销售报表', icon: 'table' }
        },
      ]
    },

    //商品销售历史查询
    {
      path: '/reportCenter-goodsSaleHistory',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'reportCenter-goodsSaleHistory',
      meta: { title: '商品销售历史查询', icon: 'example' },
      children: [
        {
          path: 'reportCenter-goodsSaleHistory_1',
          name: 'reportCenter-goodsSaleHistory_1',
          component: () => import('@/views/total/reportCenter/goodsSaleHistory/goodsSaleHistory'),
          meta: { title: '商品销售历史查询', icon: 'table' }
        },
      ]
    },


    //投币汇总查询
    {
      path: '/reportCenter-throwCoinSum',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'reportCenter-throwCoinSum',
      meta: { title: '投币汇总查询', icon: 'example' },
      children: [
        {
          path: 'reportCenter-throwCoinSum-1',
          name: 'reportCenter-throwCoinSum-1',
          component: () => import('@/views/total/reportCenter/throwCoinSum/throwCoinSum'),
          meta: { title: '投币汇总查询', icon: 'table' }
        },
      ]
    },

    //项目消费占比表
    {
      path: '/reportCenter-projectSaleRatio',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'reportCenter-projectSaleRatio',
      meta: { title: '项目消费占比表', icon: 'example' },
      children: [
        {
          path: 'reportCenter-projectSaleRatio-1',
          name: 'reportCenter-projectSaleRatio-1',
          component: () => import('@/views/total/reportCenter/projectSaleRatio/projectSaleRatio'),
          meta: { title: '项目消费占比表', icon: 'table' }
        },
      ]
    },

    //消费时段分析
    {
      path: '/reportCenter-saleTime',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'reportCenter-saleTime',
      meta: { title: '消费时段分析', icon: 'example' },
      children: [
        {
          path: 'reportCenter-saleTime-1',
          name: 'reportCenter-saleTime-1',
          component: () => import('@/views/total/reportCenter/saleTime/saleTime'),
          meta: { title: '消费时段分析', icon: 'table' }
        },
      ]
    },

    //项目消费月对比报表
    {
      path: '/reportCenter-saleMouthCompare',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'reportCenter-saleMouthCompare',
      meta: { title: '项目消费月对比报表', icon: 'example' },
      children: [
        {
          path: 'reportCenter-saleMouthCompare-1',
          name: 'reportCenter-saleMouthCompare-1',
          component: () => import('@/views/total/reportCenter/saleMonthCompare/saleMonthCompare'),
          meta: { title: '项目消费月对比报表', icon: 'table' }
        },
      ]
    },


//商品管理
    //商品设置
    {
      path: '/goodsManage-goodsSet',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'goodsManage-goodsSet',
      meta: { title: '商品设置', icon: 'example' },
      children: [
        {
          path: 'goodsManage-goodsSet-1',
          name: 'goodsManage-goodsSet-1',
          component: () => import('@/views/total/goodsManage/goodsSet/goodsInfo'),
          meta: { title: '商品资料', icon: 'table' }
        },
        {
          path: 'goodsManage-goodsSet-2',
          name: 'goodsManage-goodsSet-2',
          component: () => import('@/views/total/goodsManage/goodsSet/goodsClassify'),
          meta: { title: '商品分类', icon: 'table' }
        },
        {
          path: 'goodsManage-goodsSet-3',
          name: 'goodsManage-goodsSet-3',
          component: () => import('@/views/total/goodsManage/goodsSet/coinMeal'),
          meta: { title: '游戏币套餐', icon: 'table' }
        },
      ]
    },
    //商品定价
    {
      path: '/goodsManage-goodsFixedPrice',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'goodsManage-goodsFixedPrice',
      meta: { title: '商品定价', icon: 'example' },
      children: [
        {
          path: 'goodsManage-goodsFixedPrice-1',
          name: 'goodsManage-goodsFixedPrice-1',
          component: () => import('@/views/total/goodsManage/goodsFixedPrice/goodsFixedPrice'),
          meta: { title: '商品定价', icon: 'table' }
        },
        {
          path: 'goodsManage-goodsFixedPrice-2',
          name: 'goodsManage-goodsFixedPrice-2',
          component: () => import('@/views/total/goodsManage/goodsFixedPrice/channelFixedPrice'),
          meta: { title: '渠道定价', icon: 'table' }
        },
        {
          path: 'goodsManage-goodsFixedPrice-3',
          name: 'goodsManage-goodsFixedPrice-3',
          component: () => import('@/views/total/goodsManage/goodsFixedPrice/fixedPriceHistory'),
          meta: { title: '定价历史查询', icon: 'table' }
        },
      ]
    },


//仓储管理
    //仓储设置
    {
      path: '/storeManager-storeSet',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'storeManager-storeSet',
      meta: { title: '仓储设置', icon: 'example' },
      children: [
        {
          path: 'storeManager-storeSet-1',
          name: 'storeManager-storeSet-1',
          component: () => import('@/views/total/storeManage/storeSet/storeSet'),
          meta: { title: '仓储设置', icon: 'table' }
        },

      ]
    },

    //出库类型管理
    {
      path: '/storeManager-outInType',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'storeManager-outInType',
      meta: { title: '出入库类型管理', icon: 'example' },
      children: [
        {
          path: 'storeManager-outInType-1',
          name: 'storeManager-outInType-1',
          component: () => import('@/views/total/storeManage/outInType/outInType'),
          meta: { title: '出入库类型管理', icon: 'table' }
        },

      ]
    },



    //单据管理
    {
      path: '/storeManager-listManage',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'storeManager-listManage',
      meta: { title: '单据管理', icon: 'example' },
      children: [
        {
          path: 'storeManager-listManage-1',
          name: 'storeManager-listManage-1',
          component: () => import('@/views/total/storeManage/listManage/inStoreList/inStoreList'),
          meta: { title: '单据管理', icon: 'table' }
        },
        {
          path: 'storeManager-listManage-2',
          name: 'storeManager-listManage-2',
          component: () => import('@/views/total/storeManage/listManage/allotList/allotList'),
          meta: { title: '调拨单', icon: 'table' }
        },
        {
          path: 'storeManager-listManage-3',
          name: 'storeManager-listManage-3',
          component: () => import('@/views/total/storeManage/listManage/outStoreList/outStoreList'),
          meta: { title: '出库单', icon: 'table' }
        },
        {
          path: 'storeManager-listManage-4',
          name: 'storeManager-listManage-4',
          component: () => import('@/views/total/storeManage/listManage/checkEnter/checkEnter'),
          meta: { title: '盘点录入', icon: 'table' }
        },
        {
          path: 'storeManager-listManage-5',
          name: 'storeManager-listManage-5',
          component: () => import('@/views/total/storeManage/listManage/checkReview/checkReview'),
          meta: { title: '盘点审核', icon: 'table' }
        },
      ]
    },


    //仓储报表
    {
      path: '/storeManager-storeReport',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'storeManager-storeReport',
      meta: { title: '仓储报表', icon: 'example' },
      children: [
        {
          path: 'storeManager-storeReport-1',
          name: 'storeManager-storeReport-1',
          component: () => import('@/views/total/storeManage/storeReport/storeSearch/storeSearch'),
          meta: { title: '库存查询', icon: 'table' }
        },
        {
          path: 'storeManager-storeReport-2',
          name: 'storeManager-storeReport-2',
          component: () => import('@/views/total/storeManage/storeReport/storeChangeSearch/storeChangeSearch'),
          meta: { title: '库存变更查询', icon: 'table' }
        },
        {
          path: 'storeManager-storeReport-3',
          name: 'storeManager-storeReport-3',
          component: () => import('@/views/total/storeManage/storeReport/checkGetMoney/checkGetMoney'),
          meta: { title: '盘点盈亏查询', icon: 'table' }
        },

      ]
    },


//票务管理
    //游乐套票
    {
      path: '/ticketBusiness-playMealTicket',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'ticketBusiness-playMealTicket',
      meta: { title: '游乐套票', icon: 'example' },
      children: [
        {
          path: 'ticketBusiness-playMealTicket-1',
          name: 'ticketBusiness-playMealTicket-1',
          component: () => import('@/views/total/ticketBusiness/playMealTicket/numberTicket/numberTicket'),
          meta: { title: '计次票', icon: 'table' }
        },
        {
          path: 'ticketBusiness-playMealTicket-2',
          name: 'ticketBusiness-playMealTicket-2',
          component: () => import('@/views/total/ticketBusiness/playMealTicket/timerTicket/timerTicket'),
          meta: { title: '计时票', icon: 'table' }
        },
        {
          path: 'ticketBusiness-playMealTicket-3',
          name: 'ticketBusiness-playMealTicket-3',
          component: () => import('@/views/total/ticketBusiness/playMealTicket/endTimerTicket/endTimerTicket'),
          meta: { title: '期限票', icon: 'table' }
        },
        {
          path: 'ticketBusiness-playMealTicket-4',
          name: 'ticketBusiness-playMealTicket-4',
          component: () => import('@/views/total/ticketBusiness/playMealTicket/groupTicket/groupTicket'),
          meta: { title: '团体票', icon: 'table' }
        },

      ]
    },

      //套票相关报表
    {
      path: '/ticketBusiness-mealTicketReport',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'ticketBusiness-mealTicketReport',
      meta: { title: '套票相关报表', icon: 'example' },
      children: [
        {
          path: 'ticketBusiness-mealTicketReport-1',
          name: 'ticketBusiness-mealTicketReport-1',
          component: () => import('@/views/total/ticketBusiness/mealTicketReport/memberMealTicketSearch/memberMealTicketSearch'),
          meta: { title: '会员套票查询', icon: 'table' }
        },
        {
          path: 'ticketBusiness-storeReport-2',
          name: 'ticketBusiness-storeReport-2',
          component: () => import('@/views/total/ticketBusiness/mealTicketReport/mealSaleHistory/mealSaleHistory'),
          meta: { title: '套票销售记录', icon: 'table' }
        },
        {
          path: 'ticketBusiness-storeReport-3',
          name: 'ticketBusiness-storeReport-3',
          component: () => import('@/views/total/ticketBusiness/mealTicketReport/mealUsedSearch/mealUsedSearch'),
          meta: { title: '套票使用记录', icon: 'table' }
        },


      ]
    },

//活动促销
    // 促销方案查询
    {
      path: '/activePromotion-promotionProjectSearch',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'activePromotion-promotionProjectSearch',
      meta: { title: '促销方案查询', icon: 'example' },
      children: [
        {
          path: 'activePromotion-promotionProjectSearch-1',
          name: 'activePromotion-promotionProjectSearch-1',
          component: () => import('@/views/total/activePromotion/promotionProjectSearch/promotionProjectSearch'),
          meta: { title: '促销方案查询', icon: 'table' }
        },
      ]
    },

      //促销方案设置
    {
      path: '/activePromotion-promotionSet',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'activePromotion-promotionSet',
      meta: { title: '促销方案设置', icon: 'example' },
      children: [
        {
          path: 'activePromotion-promotionSet-1',
          name: 'activePromotion-promotionSet-1',
          component: () => import('@/views/total/activePromotion/promotionSet/limitTimePrice/limitTimePrice'),
          meta: { title: '限时特价', icon: 'table' }
        },
        {
          path: 'activePromotion-promotionSet-2',
          name: 'activePromotion-promotionSet-2',
          component: () => import('@/views/total/activePromotion/promotionSet/fullDecreasePromotion/fullDecreasePromotion'),
          meta: { title: '满减促销', icon: 'table' }
        },
        {
          path: 'activePromotion-promotionSet-3',
          name: 'activePromotion-promotionSet-3',
          component: () => import('@/views/total/activePromotion/promotionSet/limitTimePay/limitTimePay'),
          meta: { title: '限时限购', icon: 'table' }
        },
        {
          path: 'activePromotion-promotionSet-4',
          name: 'activePromotion-promotionSet-4',
          component: () => import('@/views/total/activePromotion/promotionSet/gift/gift'),
          meta: { title: '活动赠送', icon: 'table' }
        },
        {
          path: 'activePromotion-promotionSet-5',
          name: 'activePromotion-promotionSet-5',
          component: () => import('@/views/total/activePromotion/promotionSet/timeIntervalFavourable/timeIntervalFavourable'),
          meta: { title: '项目时段优惠', icon: 'table' }
        },
      ]
    },

    //促销使用记录
    {
      path: '/activePromotion-promotionUsedRecord',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'activePromotion-promotionUsedRecord',
      meta: { title: '促销使用记录', icon: 'example' },
      children: [
        {
          path: 'activePromotion-promotionUsedRecord-1',
          name: 'activePromotion-promotionUsedRecord-1',
          component: () => import('@/views/total/activePromotion/promotionUsedRecord/promotionUsedRecord'),
          meta: { title: '促销使用记录', icon: 'table' }
        },
      ]
    },

//财务管理
    //营业结账
    {
      path: '/finance-businessCheckout',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'finance-businessCheckout',
      meta: { title: '营业结账', icon: 'example' },
      children: [
        {
          path: 'finance-businessCheckout-1',
          name: 'finance-businessCheckout-1',
          component: () => import('@/views/total/finance/businessCheckout/accountPeriod/accountPeriod'),
          meta: { title: '账期做实', icon: 'table' }
        },
        {
          path: 'finance-businessCheckout-2',
          name: 'finance-businessCheckout-2',
          component: () => import('@/views/total/finance/businessCheckout/operateReport/operateReport'),
          meta: { title: '经营报表', icon: 'table' }
        },
        {
          path: 'finance-businessCheckout-3',
          name: 'finance-businessCheckout-3',
          component: () => import('@/views/total/finance/businessCheckout/accountHistory/accountHistory'),
          meta: { title: '结账历史查询', icon: 'table' }
        },
        {
          path: 'finance-businessCheckout-4',
          name: 'finance-businessCheckout-4',
          component: () => import('@/views/total/finance/businessCheckout/goodsOrder/goodsOrder'),
          meta: { title: '商品订单查询', icon: 'table' }
        },
        {
          path: 'finance-businessCheckout-5',
          name: 'finance-businessCheckout-5',
          component: () => import('@/views/total/finance/businessCheckout/orderRefund/orderRefund'),
          meta: { title: '订单退款', icon: 'table' }
        },
        {
          path: 'finance-businessCheckout-6',
          name: 'finance-businessCheckout-6',
          component: () => import('@/views/total/finance/businessCheckout/otherPay/otherPay'),
          meta: { title: '其他支出', icon: 'table' }
        },
        {
          path: 'finance-businessCheckout-7',
          name: 'finance-businessCheckout-7',
          component: () => import('@/views/total/finance/businessCheckout/otherIncome/otherIncome'),
          meta: { title: '其他收入', icon: 'table' }
        },
        {
          path: 'finance-businessCheckout-8',
          name: 'finance-businessCheckout-8',
          component: () => import('@/views/total/finance/businessCheckout/otherIncomePayAccount/otherIncomePayAccount'),
          meta: { title: '其他收支统计', icon: 'table' }
        },
        {
          path: 'finance-businessCheckout-9',
          name: 'finance-businessCheckout-9',
          component: () => import('@/views/total/finance/businessCheckout/onlineReport/onlineReport'),
          meta: { title: '线上报表', icon: 'table' }
        },
      ]
    },


    //财务基础设置
    {
      path: '/finance-financeBaseSet',
      component: Layout,
      // redirect: '/baseSet_1/baseSet_1_1',
      name: 'finance-financeBaseSet',
      meta: { title: '财务基础设置', icon: 'example' },
      children: [
        {
          path: 'finance-financeBaseSet-1',
          name: 'finance-financeBaseSet-1',
          component: () => import('@/views/total/finance/financeBaseSet/incomeClassifySet/incomeClassifySet'),
          meta: { title: '收支分类设置', icon: 'table' }
        },
        {
          path: 'finance-financeBaseSet-2',
          name: 'finance-financeBaseSet-2',
          component: () => import('@/views/total/finance/financeBaseSet/payTypeSet/payTypeSet'),
          meta: { title: '支付方式设置', icon: 'table' }
        },
      ]
    }

  ]
})
